import { MinLength,IsInt, MaxLength,Allow,Validate } from 'class-validator';

export class HomeDataModel {
    @MinLength(1,{
        message: 'think_Page参数必须有'
      })
      think_Page!: number;


      @MinLength(1,{
        message: 'think_Count参数必须有'
      })
      think_Count!: number;

      @MinLength(1,{
        message: 'user_Id参数必须有'
      })
      user_Id!: number;

      @MinLength(1,{
        message: 'banner_type参数必须有'
      })
      banner_type!: number;

}



export class LikeThinkModel {
  @MinLength(1,{
      message: 'isLike参数必须有'
    })
    isLike!: string;

    @MinLength(1,{
      message: 'user_Id参数必须有'
    })
    user_Id!: number;

    @MinLength(1,{
      message: 'think_Id'
    })
    think_Id!: number;



}

export class CollectionThinkModel {
  @MinLength(1,{
      message: 'isLike参数必须有'
    })
    isCollection!: string;

    @MinLength(1,{
      message: 'user_Id参数必须有'
    })
    user_Id!: number;

    @MinLength(1,{
      message: 'think_Id'
    })
    think_Id!: number;



}




export class ThinkInfoModel {
   @MinLength(1,{
      message: 'think_Category参数必须有'
    })
    think_Category!: number;


    @MinLength(1,{
      message: 'think_Id参数必须有'
    })
    think_Id!: number;

    @MinLength(1,{
      message: 'user_Id参数必须有'
    })
    user_Id!: number;

}

export class setRecentVisitModel {
  @MinLength(1,{
     message: 'recentVisit_Type参数必须有'
   })
   recentVisit_Type!: string;


   @MinLength(1,{
     message: 'think_Id参数必须有'
   })
   user_Id!: string;

   @MinLength(1,{
     message: 'user_Id参数必须有'
   })
   thing_Id!: string;

}